<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">
	<span class="color_red">*</span>拟聘请专家情况表
</div>

<table  id="expert_contain" border="0" cellspacing="0" cellpadding="0" class="table01" >
<col style="width: 20%" />
<col style="width: 20%" />
<col style="width: 20%" />
<col style="width: 20%" />
<col style="width: 20%" />
<tr>
	<td align="center" >类别</td>
	<td align="center" >拟聘请专家人数</td>
	<td align="center" >专家来华次数</td>
	<td align="center" >申请国拨经费</td>
	<td align="center" >单位配套经费</td>
</tr>

<tr>
	<td align="center" ><x:out select="$xmlData/data/proposal/grant_name" /></td>
	<td align="center" ><x:out select="$xmlData/data/proposal/total_num_new" /></td>
	<td align="center" ><x:out select="$xmlData/data/proposal/total_num_new1" /></td>
	<td align="center" ><x:out select="$xmlData/data/proposal/state_funded_funds" /></td>
	<td align="center" ><x:out select="$xmlData/data/proposal/supporting_funds" /></td>
</tr>
</table>

<table  id="experts" border="0" cellspacing="0" cellpadding="0" class="table01" >
	<thead>
	<tr>
		<th width="11%">序号</th>
		<th width="11%">姓名</th>
		<th width="11%">出生日期</th>
		<th width="11%">性别</th>
		<th width="11%">国家地区</th>
		<th width="11%">职务职称</th>
		<th width="12%">专业</th>
		<th width="11%">来华次数</th>
		<th width="11%">在华天数</th>
		<%--<th width="10%">最高学位</th>
        <th width="10%" >项目分工 </th>
        <th width="15%">所在单位</th>--%>
	</tr>
		</thead>
		<tbody id="tab">
			<c:set value="0" var="index" scope="page" />
			<x:forEach select="$xmlData/data/experts/expert" var="expert">
				<tr>
					<td nowrap=true align="center"  align="center">
						<input type="radio" name="sel_zh_persons" onclick="setSubmitPsn()" style="display:none"/>
						<span name="experts/expert[${flag}${index}]@seq_no">${index+1}</span>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/gender" value="<x:out select="$expert/basic_info/gender" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/gender_value" value="<x:out select="$expert/basic_info/gender_value" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/gender_name" value="<x:out select="$expert/basic_info/gender_name" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/en_name" value="<x:out select="$expert/basic_info/en_name" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/ethnicity_value" value="<x:out select="$expert/basic_info/ethnicity_value" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/ethnicity_name" value="<x:out select="$expert/basic_info/ethnicity_name" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/subject_code" value="<x:out select="$expert/basic_info/subject_code" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/subject_name" value="<x:out select="$expert/basic_info/subject_name" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/discipline_code" value="<x:out select="$expert/basic_info/discipline_code" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/discipline_name" value="<x:out select="$expert/basic_info/discipline_name" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/region_value" value="<x:out select="$expert/basic_info/region_value" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/region_name" value="<x:out select="$expert/basic_info/region_name" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/card_type_value" value="<x:out select="$expert/basic_info/card_type_value" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/academician_value" value="<x:out select="$expert/basic_info/academician_value" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/academician_name" value="<x:out select="$expert/basic_info/academician_name" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/org_code" value="<x:out select="$expert/basic_info/org_code" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/contact/tel_work" value="<x:out select="$expert/contact/tel_work" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/contact/fax" value="<x:out select="$expert/contact/fax" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/degree_value" value="<x:out select="$expert/basic_info/degree_value" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/degree_name" value="<x:out select="$expert/basic_info/degree_name" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/post_code" value="<x:out select="$expert/basic_info/post_code" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/degree_country_value" value="<x:out select="$expert/basic_info/degree_country_value" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/degree_country_name" value="<x:out select="$expert/basic_info/degree_country_name" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/degree_college" value="<x:out select="$expert/basic_info/degree_college" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/degree_year" value="<x:out select="$expert/basic_info/degree_year" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/position" value="<x:out select="$expert/basic_info/position" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/gender" value="<x:out select="$expert/basic_info/gender" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/gender_value" value="<x:out select="$expert/basic_info/gender_value" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/prof_title" value="<x:out select="$expert/basic_info/prof_title" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/prof_title_value" value="<x:out select="$expert/basic_info/prof_title_value" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/address" value="<x:out select="$expert/basic_info/address" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/post_doctor_value" value="<x:out select="$expert/basic_info/post_doctor_value" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/post_doctor_name" value="<x:out select="$expert/basic_info/post_doctor_name" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/age" value="<x:out select="$expert/basic_info/age" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/educate_value" value="<x:out select="$expert/basic_info/educate_value" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/card_code" value="<x:out select="$expert/basic_info/card_code" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/card_type_name" value="<x:out select="$expert/basic_info/card_type_name" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/org_name" value="<x:out select="$expert/basic_info/org_name" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/tech_department_address" value="<x:out select="$expert/basic_info/tech_department_address" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/subordinate_expert_organizations" value="<x:out select="$expert/basic_info/subordinate_expert_organizations" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/start_end_date" value="<x:out select="$expert/basic_info/start_end_date" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/summary9" value="<x:out select="$expert/basic_info/summary9" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/summary9_hidden" value="<x:out select="$expert/basic_info/summary9_hidden" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/summary10" value="<x:out select="$expert/basic_info/summary10" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/summary10_hidden" value="<x:out select="$expert/basic_info/summary10_hidden" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/summary11" value="<x:out select="$expert/basic_info/summary11" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/summary11_hidden" value="<x:out select="$expert/basic_info/summary11_hidden" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/summary12" value="<x:out select="$expert/basic_info/summary12" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/summary12_hidden" value="<x:out select="$expert/basic_info/summary12_hidden" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/contact/email" value="<x:out select="$expert/contact/email" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/contact/mobile" value="<x:out select="$expert/contact/mobile" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/iscomember" value="0"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/researches" label="xml"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/work_date" value="<x:out select="$expert/basic_info/work_date" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/nationality_travel_expenses" value="<x:out select="$expert/basic_info/nationality_travel_expenses" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/hotel_expense" value="<x:out select="$expert/basic_info/hotel_expense" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/transportation_charges" value="<x:out select="$expert/basic_info/transportation_charges" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/expert_subsidies" value="<x:out select="$expert/basic_info/expert_subsidies" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/expert_living_expenses" value="<x:out select="$expert/basic_info/expert_living_expenses" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/lecture_fees" value="<x:out select="$expert/basic_info/lecture_fees" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/petty_cash" value="<x:out select="$expert/basic_info/petty_cash" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/contract_agreed_amount" value="<x:out select="$expert/basic_info/contract_agreed_amount" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/apply_for_subsidy" value="<x:out select="$expert/basic_info/apply_for_subsidy" />"/>
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/subtotal" value="<x:out select="$expert/basic_info/subtotal" />" />
						<input type="hidden" name="experts/expert[${flag}${index}]/basic_info/file_code8" value="<x:out select="$expert/basic_info/file_code8" />" />
					</td>
					<td align="center">
						<span name="experts/expert[${flag}${index}]/basic_info/zh_name"><a href="#" class="yase" onclick="psnInfoViewByYbyf(this,'experts')"><x:out select="$expert/basic_info/zh_name" /></a></span>
					</td>
					<td align="center">
						<span name="experts/expert[${flag}${index}]/basic_info/birthday"><x:out select="$expert/basic_info/birthday" /></span>
					</td>
					<td align="center">
						<span name="experts/expert[${flag}${index}]/basic_info/gender_name"><x:out select="$expert/basic_info/gender_name" /></span
					</td>
					<td align="center">
						<span name="experts/expert[${flag}${index}]/basic_info/region_name"><x:out select="$expert/basic_info/region_name" /></span>
					</td>
					<td align="center">
						<span name="experts/expert[${flag}${index}]/basic_info/prof_title_name"><x:out select="$expert/basic_info/prof_title_name" /></span>

					</td>

					<td align="left">
						<span name="experts/expert[${flag}${index}]/contact/major_work"><x:out select="$expert/contact/major_work" /></span>
					</td>

					<td align="center">
						<span name="experts/expert[${flag}${index}]/basic_info/number_of_visits"><x:out select="$expert/basic_info/number_of_visits" /></span>
					</td>
					<td align="center">
						<span name="experts/expert[${flag}${index}]/basic_info/days_to_china"><x:out select="$expert/basic_info/days_to_china" /></span>
					</td>

				</tr>
				<c:set value="${index+1}" var="index" scope="page" />
			</x:forEach>
			</tbody>
	</table>
   
 <script type="text/javascript">

 /**
	 * 适用于一般研发或一般研发一样格式的申报书人员信息中的人员查看
	 * @param obj
	 * @param tableId
	 * @returns {Boolean}
	 */
	function psnInfoViewByYbyf(obj,tableId,titleName) {
		var subGrantCode = $("[name='proposal/sub_grant_code']").val();
		var url;
		if(subGrantCode == 476){
			url = ctx+"/proposal/view/dialog/psnInfoEdit_gdyjzj_2019?parentTab="+
					tableId+"&type=edit&needMeetingInfo=1&TB_iframe=true&height=460&width=910";
		}else{
			url = ctx+"/proposal/view/dialog/psnInfoEdit_gdyjzj_2019?parentTab="+
					tableId+"&type=edit&needMeetingInfo=1&TB_iframe=true&height=460&width=910";
		}
		$(obj).parents("tr").find(":radio").attr("checked",true);	
		if(!$("#"+tableId+" :radio:checked").length>0){
			scmWarn(irisNotes.pleaseSelectARow);
			return false;
		}
		
		if(url!=null&&url!=""){
			// showThickBox(url,irisNotes.viewResearcherInformation);
			var title=irisNotes.viewResearcherInformation;
			if (titleName != undefined)
			{
				title = titleName;
			}
			tb_show(title,url,false);
		}
	}
 
 
 </script>

